const express = require('express')
const router = express.Router()
const AddressController = require('../../controller/address')

router.post('/add', AddressController.add)
router.post('/edit/:id', AddressController.edit)
router.get('/delete/:id', AddressController.delete)
router.get('/findById/:id', AddressController.findById)
router.get('/findByUid', AddressController.findByUid)
router.get('/findByDefault', AddressController.findByDefault)
router.get('/setDefault/:id', AddressController.setDefault)

module.exports = router